#include "mainwindow.h"
#include <QApplication>
#include "net_com.h"


int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.setWindowTitle("Net Communication");
    QTextCodec::setCodecForCStrings(QTextCodec::codecForName("GB2312"));
    QTextCodec::setCodecForLocale(QTextCodec::codecForName("GB2312"));
    QTextCodec::setCodecForTr(QTextCodec::codecForName("GB2312"));
    w.start_default();
    Com_Server udp_com_server(&w);
    udp_com_server.start();


    w.show();
    
    return a.exec();
}
